import xlrd
def getExcelData(xlsName, sheetName):
    xlsdata = xlrd.open_workbook(xlsName)
    sheetdata = xlsdata.sheet_by_name(sheetName)

    rows = sheetdata.nrows
    data = []
    for i in range(rows):
        tmpList = []
        tmp1 = sheetdata.cell_value(i, 0)
        tmpList.append(tmp1)
        tmp2 = sheetdata.cell_value(i, 1)
        tmpList.append(tmp2)
        tmp3 = sheetdata.cell_value(i, 2)
        tmpList.append(tmp3)
        data.append(tmpList)

    return data